package spring_annotation.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import spring_annotation.aop.LogAspects;
import spring_annotation.aop.MathCalculator;

@Configuration
@EnableAspectJAutoProxy
public class MainAOPConfig {

    @Bean
    public MathCalculator calculator(){
        return new MathCalculator();
    }

    @Bean
    public LogAspects logAspects(){
        return new LogAspects();
    }

}
